cmake_minimum_required(VERSION 3.27)
project(super_tool_cpp_test)

set(CMAKE_CXX_STANDARD 14)

add_executable(super_tool_cpp_test main.cpp)

# 链接动态库
add_library(ThirdParty_SUPERTOOL STATIC IMPORTED)
set_target_properties(ThirdParty_SUPERTOOL PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/super_tool/lib/libsuper_tool.a
)

add_library(ThirdParty_SSL STATIC IMPORTED)
set_target_properties(ThirdParty_SSL PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/super_tool/lib/libssl.a
)

add_library(ThirdParty_CRYPTO STATIC IMPORTED)
set_target_properties(ThirdParty_CRYPTO PROPERTIES IMPORTED_LOCATION
        ${CMAKE_SOURCE_DIR}/super_tool/lib/libcrypto.a
)

TARGET_LINK_LIBRARIES(super_tool_cpp_test ThirdParty_SUPERTOOL ThirdParty_SSL ThirdParty_CRYPTO)

